﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QUANLYKHACHSAN_N4
{
    public class DuLieuRP
    {
        public static void SetKhungPrint(Microsoft.Reporting.WinForms.ReportViewer KhungIn, string NameDataSet, BindingSource bind)
        {
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
            reportDataSource1.Name = NameDataSet;
            reportDataSource1.Value = bind;
            KhungIn.LocalReport.DataSources.Add(reportDataSource1);

        }
        public static void SetKhungPrint(frmPrint FormIn, string NameDataSet, BindingSource bind)
        {
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
            reportDataSource1.Name = NameDataSet;
            reportDataSource1.Value = bind;
            FormIn.rpViewer.LocalReport.DataSources.Add(reportDataSource1);
        }

    }
}
